From 63414e85c350270517eba4c2cb22b31629809d35 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 19 Jun 2019 11:51:47 -0500 Subject: [PATCH] tests/libtest: Make temporary gpghome private gpg prints a warning about unsafe permissions if the homedir is group or world readable. This is just noise in the test logs, so appease it by making the homedir 700. --- tests/libtest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/libtest.sh b/tests/libtest.sh index 00e69b12..c82bf487 100755 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -85,12 +85,13 @@ export TEST_GPG_KEYFPR_2="7B3B1020D74479687FDB2273D8228CFECA950D41" export TEST_GPG_KEYID_3="0D15FAE7DF444D67" export TEST_GPG_KEYFPR_3="7D29CF060B8269CDF63BFBDD0D15FAE7DF444D67" -# GPG when creating signatures demands a writable +# GPG when creating signatures demands a private writable # homedir in order to create lockfiles. Work around # this by copying locally. echo "Copying gpghome to ${test_tmpdir}" cp -a "${test_srcdir}/gpghome" ${test_tmpdir} chmod -R u+w "${test_tmpdir}" +chmod 700 "${test_tmpdir}/gpghome" export TEST_GPG_KEYHOME=${test_tmpdir}/gpghome export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted -- 2.30.2